package org.ch00.test03.demo02;


/**
 * @author ZQX
 * @date 2025-02-28
 */
public class MainTest01 {
    public static void main(String[] args) {
        // 实例化对象
        JavaTeacher zs = new JavaTeacher("张三","NF") ;
        DotNetTeacher ls = new DotNetTeacher("李四","BF") ;

        zs.teach();
        ls.teach();


        zs.playGame();
        ls.playMusic();

        // 错误：Java老师不会玩音乐
        // zs.playMusic();



    }
}
